package com.sugon.entity;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * 设备备件关联实体
 * 表名 SPARE_PART_DEV
 *
 * @author sugon
 * @date 2019-07-18 10:18:31
 */
@NoArgsConstructor
@Data
public class SparePartDevEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 审核状态
     */
    private Integer checkFlag;
    /**
     * 审核时间
     */
    private Date checkDate;
    /**
     * 审核人
     */
    private String checkUser;
    /**
     * 创建时间
     */
    private Date createDate;
    /**
     * 创建人
     */
    private String createUser;
    /**
     * 备件ID
     */
    private String spareId;
    /**
     * 设备ID
     */
    private String devId;
    /**
     * ID
     */
    private String id;
    private String devCode;
    private String devName;
    private String devTypeB;
    private String devTypeM;
    private String devTypeS;
    /**
     * 所属车间编码
     */
    private String devFarm;
    /**
     * 所属车间名称
     */
    private String devFarmName;
    private String devBrand;
    /**
     * 备件供应厂商
     */
    private String devSupply;
    /**
     * 备件供应厂商名称
     */
    private String devSupplyName;

    //备件表
    private String source; //来源
    private String partCode;
    private String erpName;
    private String spareCode;
    private String name;
    private String spec;
    private String producor;
    private String useUnit;

    /**
     * 备件库存数
     */
    private Integer stockNum;

    public SparePartDevEntity(String devId, String spareId) {
        this.devId = devId;
        this.spareId = spareId;
    }
}
